<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        canvas {
            border: 1px solid purple;
            /* margin-left: 150px;
            margin-top: 150px; */
            display: inline-block;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <canvas id="canvas" width="400" height="400"></canvas>
    <script src="../dist/canvas-helper.js"></script>
    <script>
        const canvas = document.getElementById('canvas'); // Step1. get canvas dom
        const ctx = canvas.getContext('2d'); // Step2. get canvas context
        new CanvasHelper(canvas, ctx); // Step3. init canvas-helper
    </script>
</body>
</html>